﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;

using Polla.ServiceReference1;

namespace Polla
{
    public partial class MainPage : PhoneApplicationPage
    {
        // Constructor
        public MainPage()
        {
            InitializeComponent();
        }

        private void btnInserta_Click(object sender, RoutedEventArgs e)
        {
            
            int usu = 1;
            int favo =Convert.ToInt32(txtFavorito.Text);
            int local = Convert.ToInt32(txtRlocal.Text);
            int visi = Convert.ToInt32(txtRVisi.Text);
            int even = Convert.ToInt32(txtEvento.Text);
            Service1Client cliente= new Service1Client();

            cliente.InsertApuestaAsync(even,usu,favo,local,visi);
          




        }
    }
}